<?php

class ReporteVotosRegistrados extends CI_Controller{
private $data;
	public function __construct(){
		parent::__construct();
		$this->data['url1']=site_url(array("reportes","reporteVotosRegistrados","buscar"));
	}
	
	public function index()
	{
		session_start();
		
		$this->load->view("cabecera");
		$this->load->view("menu");
		$this->load->model("registroVotos/registroVotos_model");
		$this->data['can']=$this->registroVotos_model->candidatos();
		$this->load->view("reportes/V_reporteVotosRegistrados",$this->data);
	}
	
	public function buscar(){
		//session_start();
		
		$candidato=$this->input->post("candidato");
		$this->load->model("reportes/reportes_model");
		$this->data['muni']=$this->reportes_model->reporteVotosRegistrados($candidato);
		echo $this->load->view("reportes/VR_reporteVotosRegistrados",$this->data);
		
	}
}